package com.properdsa.service;
import cn.cmmunity.beans.Housing;
import cn.cmmunity.beans.User;
import com.properdsa.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    UserMapper userMapper;
    @Override
    public List<User> userList(Map<String, Object> map) {

        return userMapper.userList(map);
    }

    @Override
    public int count(Map<String,Object>map) {
        return userMapper.count(map);
    }

    @Override
    public int add(User user) {
        return userMapper.add(user);
    }

    @Override
    public List<Housing> getAllName() {
        return userMapper.getAllName();
    }

    @Override
    public int update(Integer id) {
        return userMapper.update(id);
    }

    @Override
    public List<User> getAlllist() {
        return userMapper.getAlllist();
    }

    @Override
    public int delete(Integer id) {
        return userMapper.delete(id);
    }
}
